package com.cheng.im.service.friendship.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheng.im.service.common.resp.CommonResult;
import com.cheng.im.service.frienship.domain.ImFriendshipRequest;
import com.cheng.im.service.frienship.model.req.ApproverFriendRequestReq;
import com.cheng.im.service.frienship.model.req.FriendDto;
import com.cheng.im.service.frienship.model.req.ReadFriendShipRequestReq;

import java.util.List;

public interface ImFriendshipRequestService extends IService<ImFriendshipRequest> {

    public CommonResult addFriendshipRequest(String fromId, FriendDto dto, String appId);

    public CommonResult approveFriendRequest(ApproverFriendRequestReq req);

    public CommonResult readFriendShipRequestReq(ReadFriendShipRequestReq req);

    public CommonResult<List<ImFriendshipRequest>> getFriendRequest(String fromId, String appId);
}
